import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-plus/lib/theme-chalk/index.css';
const app = createApp(App)

import { ElSwitch,ElCascader,ElScrollbar,ElMessage,ElSelect} from 'element-plus'

const components = [ElSwitch,ElCascader,ElScrollbar,ElSelect]
components.forEach(component => {
  app.component(component.name, component)
})
app.config.globalProperties.$message = ElMessage;
import api from '@/api/api.js'
app.config.globalProperties.$axios = api;

app.config.globalProperties.baseUrl = process.env.VUE_APP_BASE_API
app.use(store).use(router).mount('#app')